package com.diandiansong.app.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

import diandiansong.library.utils.BaseEntity;

public class CommodityIndextjInfo extends BaseEntity {
    /**
     * message : null
     * data : [{"commodity_id":"35","commodity_name":"空心菜","imgs":"http://h3.mobilekoudai
     * .com/uploads/2018-07-26/62067781f3aebb65c16b5942c8d3aa3ae8.jpg","price":"0.01","unit":"斤"},{"commodity_id":"34","commodity_name":"芋头",
     * "imgs":"http://h3.mobilekoudai.com/uploads/2018-07-26/08d5a6a6b94f25045d77e495d3795a1037.jpg","price":"0.01","unit":"斤"},
     * {"commodity_id":"33","commodity_name":"花生","imgs":"http://h3.mobilekoudai.com/uploads/2018-07-26/a812b42d187553119fd90745c60899f232.jpg",
     * "price":"0.01","unit":"斤"},{"commodity_id":"32","commodity_name":"料酒","imgs":"http://h3.mobilekoudai
     * .com/uploads/2018-07-26/5ab89818ceca15034521781d0967c7af4a.jpg","price":"0.01","unit":"件"},{"commodity_id":"31","commodity_name":"茅台",
     * "imgs":"http://h3.mobilekoudai.com/uploads/2018-07-26/42906f132fa0a279e09d2a488983b7916f.jpg","price":"0.01","unit":"件"},
     * {"commodity_id":"30","commodity_name":"AD钙奶","imgs":"http://h3.mobilekoudai.com/uploads/2018-07-26/6c1f9d8e055d7a8e97af2fd1e41003ef55.jpg",
     * "price":"0.01","unit":"件"},{"commodity_id":"29","commodity_name":"菜籽油","imgs":"http://h3.mobilekoudai
     * .com/uploads/2018-07-26/53cad67aaf04f59baa18aa54c351e81af4.jpg","price":"500.00","unit":"斤"},{"commodity_id":"28","commodity_name":"东北大米",
     * "imgs":"http://h3.mobilekoudai.com/uploads/2018-07-26/ba9da062a58483452e08f0f4e9f022fef0.jpg","price":"0.01","unit":"斤"},
     * {"commodity_id":"27","commodity_name":"擀面","imgs":"http://h3.mobilekoudai.com/uploads/2018-07-26/83d6485ef905d4f95fbb231f4dba3ad1bb.jpg",
     * "price":"0.01","unit":"斤"},{"commodity_id":"26","commodity_name":"鸭蛋","imgs":"http://h3.mobilekoudai
     * .com/uploads/2018-07-26/52cc9f1579abb3e1b6ceccddbe8ba26750.jpg","price":"0.01","unit":"个"}]
     */

    @SerializedName("data")
    private List<Data> data;

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }

    public static class Data {
        /**
         * commodity_id : 35
         * commodity_name : 空心菜
         * imgs : http://h3.mobilekoudai.com/uploads/2018-07-26/62067781f3aebb65c16b5942c8d3aa3ae8.jpg
         * price : 0.01
         * unit : 斤
         */

        @SerializedName("commodity_id")
        private String commodityId;
        @SerializedName("commodity_name")
        private String commodityName;
        @SerializedName("imgs")
        private String imgs;
        @SerializedName("price")
        private String price;
        @SerializedName("unit")
        private String unit;

        public String getCommodityId() {
            return commodityId;
        }

        public void setCommodityId(String commodityId) {
            this.commodityId = commodityId;
        }

        public String getCommodityName() {
            return commodityName;
        }

        public void setCommodityName(String commodityName) {
            this.commodityName = commodityName;
        }

        public String getImgs() {
            return imgs;
        }

        public void setImgs(String imgs) {
            this.imgs = imgs;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }
    }
}
